ensuresuccessstatuscode exception

70

ensuresuccessstatuscode exception -

var response = await client.GetAsync(...);
if (response.IsSuccessStatusCode)
{
    // Handle success
}
else
{
    // Handle failure
}

Comments

Submit
0 Comments